package code1.string;

/**
 * 原题链接：https://leetcode.cn/problems/reverse-string/
 */
public class P344 {
    //反转字符串
    public void reverseString(char[] s) {
        for(int i=0,j=s.length-1;i<s.length/2;i++,j--){
            char tmp=s[i];
            s[i]=s[j];
            s[j]=tmp;
        }
        return;
    }
}
